<template>
	<view class="container">
		<view class="bh-box">
			驳回原因：内容内容内容内容内容内容内容内容
			内容内容内容内容
		</view>
		
		<view class="bg-box box-1">
			<image :src="$img_path('/mall/5.png')" mode="widthFix"></image>
			<view class="right">
				<view class="name">
					真实姓名：<text>张三</text>
				</view>
				<view class="cardNumber">
					身份证号：<text>4651*********4646</text>
				</view>
			</view>
		</view>
		<view class="bg-box box-2">
			<view class="flex-box">
				<text>证件审核</text>
				<view class="right" :style="{color:true?'#0291FF':''}">
					已通过
				</view>
			</view>
			<view class="flex-box">
				<text>有效期</text>
				<view class="right">
					正常
				</view>
			</view>
		</view>
		<view class="bg-box box-2">
			<view class="flex-box">
				<text>服务城市</text>
				<view class="right">
					已通过
				</view>
			</view>
			<view class="flex-box">
				<text>常住地址</text>
				<view class="right">
					二七区XXXX街道详细地址详细地址详细地址
				</view>
			</view>
		</view>
		
		<view class="bg-box box-3">
			<view class="i-box">
				<view class="title">
					*核心服务区域
				</view>
				<view class="q-item">
					二七区  XXXX街道 、XXXX街道、XXXX街道、X
					XXX街道、XXXX街道
				</view>
			</view>
			<view class="i-box">
				<view class="title">
					重点服务区域
				</view>
				<view class="q-item">
					中原区  XXXX街道 、XXXX街道、XXXX街道、X
					XXX街道、XXXX街道
				</view>
				<view class="q-item">
					金水区  XXXX街道 、XXXX街道、XXXX街道、X
					XXX街道、XXXX街道
				</view>
			</view>
		</view>
		
		<view class="bg-box box-4">
			<text>电子协议</text>
			<view class="right" @click="toAgreement">
				<text>已签署</text>
				<image :src="$img_path('/mine/r_img.png')" mode="widthFix"></image>
			</view>
		</view>
		
		<view class="bg-box box-5">
			<view class="title">
				健康证
			</view>
			<view class="flex-left-row">
				<text>持证人</text>
				<view class="val">
					张三
				</view>
			</view>
			<view class="flex-left-row">
				<text>证件号码</text>
				<view class="val">
					54646464641445
				</view>
			</view>
			<view class="flex-left-row">
				<text>有效日期</text>
				<view class="val">
					2099-12-12
				</view>
			</view>
			
			<view class="idcard">
				<view class="u-box">
					<view class="img-box">
						<image :src="$img_path('/pagesRegion/13.png')" mode="widthFix"></image>
					</view>
					<view class="text">
						证件带照片面
					</view>
				</view>
				<view class="u-box">
					<view class="img-box">
						<image :src="$img_path('/pagesRegion/13.png')" mode="widthFix"></image>
					</view>
					<view class="text">
						证件无照片面
					</view>
				</view>
			</view>
		</view>
		
		
		<view class="b-btn">
			<view class="b-box edit">
				<button @click="$refs.bohui.open()">驳回</button>
				<button>同意</button>
			</view>
		</view>
		
		
		<popupBox ref="bohui" contentBG="#ffffff">
			<view class="popup-con">
				<view class="title">
					驳回
				</view>
				<view class="con-textarea">
					<textarea placeholder="请输入驳回原因"></textarea>
				</view>
			</view>
		</popupBox>
	</view>
</template>

<script>
	import popupBox from '@/components/popup/popup.vue'
	export default {
		components:{
			popupBox
		},
		data() {
			return {
				
			};
		},
		onLoad() {
			uni.setNavigationBarTitle({
				title:'待审核'
			})
		},
		methods:{
			toAgreement(){
				uni.navigateTo({
					url:'/pagesRegion/servicePersonnelReview/agreement'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.container{
	padding: 0 22rpx;
	box-sizing: border-box;
	padding-bottom: calc(constant(safe-area-inset-bottom) + 140rpx);
	padding-bottom: calc(env(safe-area-inset-bottom) + 140rpx);
	
	.bh-box{
		background: #FFE6E6;
		border-radius: 20rpx;
		padding: 24rpx 22rpx 22rpx;
		box-sizing: border-box;
		font-weight: 400;
		font-size: 32rpx;
		color: #FF4A4A;
		line-height: 44rpx;
		margin-top: 20rpx;
	}
	
	.bg-box{
		background: #FFFFFF;
		border-radius: 20rpx;
		margin-top: 20rpx;
		box-sizing: border-box;
	}
	.box-1{
		display: flex;
		align-items: center;
		padding: 32rpx 24rpx 30rpx;
		image{
			width: 114rpx;
			height: 114rpx;
		}
		.right{
			padding-left: 20rpx;
			.name{
				font-weight: 400;
				font-size: 32rpx;
				color: #000000;
				line-height: 44rpx;
				text{
					font-weight: bold;
				}
			}
			.cardNumber{
				font-weight: 400;
				font-size: 32rpx;
				color: #000000;
				line-height: 44rpx;
				margin-top: 12rpx;
				text{
					font-weight: bold;
				}
			}
		}
	}
	.box-2{
		padding: 4rpx 24rpx;
		.flex-box{
			display: flex;
			justify-content: space-between;
			padding: 20rpx 0;
			&>text{
				display: block;
				width: 140rpx;
				font-weight: 400;
				font-size: 30rpx;
				color: #333333;
				line-height: 42rpx;
			}
			&>view{
				width: calc(100% - 200rpx);
				font-weight: bold;
				font-size: 30rpx;
				color: #000000;
				line-height: 42rpx;
				text-align: right;
			}
		}
	}
	.box-3{
		padding: 24rpx 24rpx 0rpx;
		.i-box{
			padding-bottom: 40rpx;
			.title{
				font-weight: bold;
				font-size: 30rpx;
				color: #000000;
				line-height: 42rpx;
			}
			.q-item{
				font-weight: 400;
				font-size: 30rpx;
				color: #333333;
				line-height: 42rpx;
				margin-top: 20rpx;
			}
		}
	}
	.box-4{
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 32rpx 44rpx 30rpx 32rpx;
		&>text{
			font-weight: bold;
			font-size: 30rpx;
			color: #000000;
			line-height: 42rpx;
		}
		.right{
			display: flex;
			align-items: center;
			justify-content: flex-end;
			text{
				font-weight: 400;
				font-size: 30rpx;
				color: #B4B4B4;
				line-height: 42rpx;
			}
			image{
				width: 11rpx;
				height: 19rpx;
				margin-left: 22rpx;
			}
		}
	}
	.box-5{
		padding: 24rpx 24rpx 10rpx;
		.title{
			font-weight: bold;
			font-size: 30rpx;
			color: #000000;
			line-height: 42rpx;
			margin-bottom: 40rpx;
		}
		.flex-left-row{
			display: flex;
			align-items: center;
			margin-bottom: 40rpx;
			&>text{
				display: block;
				width: 180rpx;
				font-weight: 400;
				font-size: 30rpx;
				color: #333333;
				line-height: 42rpx;
			}
			view{
				width: calc(100% - 180rpx);
				padding-left: 20rpx;
				font-weight: bold;
				font-size: 30rpx;
				color: #000000;
				line-height: 42rpx;
			}
		}
		.idcard{
			display: flex;
			justify-content: space-between;
			padding-bottom: 40rpx;
			.u-box{
				width: 320rpx;
				.img-box{
					width: 100%;
					height: 212rpx;
					image{
						width: 100%;
						height: 100%;
						border-radius: 12rpx;
					}
				}
				.text{
					font-weight: bold;
					font-size: 30rpx;
					color: #000000;
					line-height: 42rpx;
					text-align: center;
					margin-top: 20rpx;
				}
			}
		}
	}
}

.popup-con{
	.title{
		text-align: center;
		font-weight: bold;
		font-size: 36rpx;
		color: #000000;
		line-height: 50rpx;
		padding: 28rpx 0 18rpx;
	}
	.c-text{
		font-weight: bold;
		font-size: 36rpx;
		color: #000000;
		line-height: 50rpx;
		padding-bottom: 66rpx;
	}
	.con-textarea{
		padding-bottom: 52rpx;
		textarea{
			width: 508rpx;
			height: 186rpx;
			background: #FFFFFF;
			border-radius: 8rpx 8rpx 8rpx 8rpx;
			border: 2rpx solid #B4B4B4;
			padding: 20rpx;
		}
	}
}

.b-btn{
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom);
	.b-box{
		padding: 20rpx 22rpx;
		box-sizing: border-box;
		display: flex;
		justify-content: center;
		button{
			width: 50%;
			height: 96rpx;
			font-weight: bold;
			font-size: 36rpx;
			color: #FFFFFF;
			line-height: 96rpx;
			&:nth-child(1){
				background: #FF4A4A;
				border-radius: 80rpx 0rpx 0rpx 80rpx;
			}
			&:last-child{
				background: linear-gradient( 135deg, #FFA233 0%, #FB4C4C 100%);
				border-radius: 0rpx 80rpx 80rpx 0rpx;
			}
		}
	}
}
</style>
